const router = require('koa-router')()
// const ArticleController = require('../controllers/user/article')
// const AuthController = require('../controllers/auth')
const ClassifyController = require('../controllers/base/cosmeticsClassify')
const DetailControllers = require('../controllers/base/cosmeticsDetail')
const RecommendControllers = require('../controllers/base/cosmeticsRecommend')


router.prefix('/parameter')

// 新增分类
router.post('/add-classify', ClassifyController.addCosmeticsClassify)

// 获取分类列表
router.get('/classify-list', ClassifyController.getClassifyList)

// 删除分类
router.post('/classify-del', ClassifyController.deleteClassifyList)

// 更新分类map
router.post('/update-classify-map', ClassifyController.updateClassifyContent)

// 删除分类map
router.post('/delete-classify-map', ClassifyController.deleteClassifyMap)

// 查询分类map
router.get('/get-classify-map', ClassifyController.getClassifyMap)

// 获取化妆品信息列表
router.get('/detail-list', DetailControllers.getCosmeticsDetailList)

// 获取推荐列表
router.get('/detail-recommend', DetailControllers.getRecommendList)

// 用户获取单个化妆品信息
router.get('/detail-item', DetailControllers.getCosmeticsDetailItem)

// 上传缩略图
router.post('/detail-picture-upload', DetailControllers.uploadPicture)

// 新增化妆品信息
router.post('/detail-add', DetailControllers.addDetailByAdmin)

// 编辑化妆品信息
router.post('/detail-edit', DetailControllers.editDetailByAdmin)

// 推荐设置列表
router.get('/recommend-set-list', RecommendControllers.getRecommendSet)

module.exports = router